export const sleep = (duration: number) =>
  new Promise<void>((resolve) => {
    setTimeout(() => {
      resolve();
    }, duration);
  });
